package com.hualan.pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName consult_feedback
 */
@Data
public class ConsultFeedback {
    /**
     * 
     */
    private Integer id;

    /**
     * 咨询师
     */
    private Integer consultantId;

    /**
     * 咨询类型
     */
    private Integer type;

    /**
     * 咨询时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")//只能转换请求参数
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT-8")//该注解既可以转换请求参数（必须是json格式），也可以转换响应的格式
    private Date time;

    /**
     * 咨询内容
     */
    private String content;

    /**
     * 回复内容
     */
    private String feedback;

    /**
     * 状态
     */
    private Integer status;

    private Consultant consultant;

    private ExpertiseField expertiseField;

    public Consultant getConsultant() {
        return consultant;
    }

    public void setConsultant(Consultant consultant) {
        this.consultant = consultant;
    }

    public ExpertiseField getExpertiseField() {
        return expertiseField;
    }

    public void setExpertiseField(ExpertiseField expertiseField) {
        this.expertiseField = expertiseField;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getConsultantId() {
        return consultantId;
    }

    public void setConsultantId(Integer consultantId) {
        this.consultantId = consultantId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFeedback() {
        return feedback;
    }

    public void setFeedback(String feedback) {
        this.feedback = feedback;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}